package edu.tgc.web.form.hrm;

import java.util.Date;
import java.util.UUID;

import org.springframework.format.annotation.DateTimeFormat;

import edu.tgc.entity.hrm.dictionary.HrmCertificateType;
import edu.tgc.entity.system.SysUser;
import edu.tgc.web.form.file.FileResourceForm;

public class HrmCertificateForm extends FileResourceForm<UUID> {

    // 是否继教
    protected Boolean continueEdu;
    // 年审周期
    protected String cycle;
    protected String description;
    // 到期时间
    protected Date expiryDate;
    // 发证时间
    protected Date issueDate;
    // 公司需要
    protected Boolean need;
    // 编号
    protected String no;
    // 注册编号
    protected String regNo;
    protected Integer sort = 1;
    // 证书名称
    protected HrmCertificateType type;
    protected SysUser user;

    public Boolean getContinueEdu() {
        return this.continueEdu;
    }

    public String getCycle() {
        return this.cycle;
    }

    @Override
    public String getDescription() {
        return this.description;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date getExpiryDate() {
        return this.expiryDate;
    }

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date getIssueDate() {
        return this.issueDate;
    }

    public Boolean getNeed() {
        return this.need;
    }

    public String getNo() {
        return this.no;
    }

    public String getRegNo() {
        return this.regNo;
    }

    public Integer getSort() {
        return this.sort;
    }

    public HrmCertificateType getType() {
        return this.type;
    }

    public SysUser getUser() {
        return this.user;
    }

    public void setContinueEdu(Boolean continueEdu) {
        this.continueEdu = continueEdu;
    }

    public void setCycle(String cycle) {
        this.cycle = cycle;
    }

    @Override
    public void setDescription(String description) {
        this.description = description;
    }

    public void setExpiryDate(Date expiryDate) {
        this.expiryDate = expiryDate;
    }

    public void setIssueDate(Date issueDate) {
        this.issueDate = issueDate;
    }

    public void setNeed(Boolean need) {
        this.need = need;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public void setRegNo(String regNo) {
        this.regNo = regNo;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public void setType(HrmCertificateType type) {
        this.type = type;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

}
